package com.ruoyi.system.domain.api;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 币种价格对象 w_coin_price
 * 
 * @author ruoyi
 * @date 2022-04-22
 */
public class WCoinPrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 币种名称 */
    @Excel(name = "币种名称")
    private String coinName;

    /** 币种价格 */
    @Excel(name = "币种价格")
    private BigDecimal price;

    /** 涨跌幅 */
    @Excel(name = "涨跌幅")
    private BigDecimal changeRate;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 获取地址 */
    @Excel(name = "获取地址")
    private String fromUrl;

    /** 图标 */
    @Excel(name = "图标")
    private String icon;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String rightCoinName;

    /** 开盘价 */
    @Excel(name = "开盘价")
    private BigDecimal open;

    /** 最高价 */
    @Excel(name = "最高价")
    private BigDecimal high;

    /** 交易量 */
    @Excel(name = "交易量")
    private BigDecimal amount;

    /** 是否首页显示 */
    @Excel(name = "是否首页显示")
    private Integer isTop;

    /** 排序位置 */
    @Excel(name = "排序位置")
    private Long priceSort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCoinName(String coinName) 
    {
        this.coinName = coinName;
    }

    public String getCoinName() 
    {
        return coinName;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setChangeRate(BigDecimal changeRate) 
    {
        this.changeRate = changeRate;
    }

    public BigDecimal getChangeRate() 
    {
        return changeRate;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setFromUrl(String fromUrl) 
    {
        this.fromUrl = fromUrl;
    }

    public String getFromUrl() 
    {
        return fromUrl;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setRightCoinName(String rightCoinName) 
    {
        this.rightCoinName = rightCoinName;
    }

    public String getRightCoinName() 
    {
        return rightCoinName;
    }
    public void setOpen(BigDecimal open) 
    {
        this.open = open;
    }

    public BigDecimal getOpen() 
    {
        return open;
    }
    public void setHigh(BigDecimal high) 
    {
        this.high = high;
    }

    public BigDecimal getHigh() 
    {
        return high;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setIsTop(Integer isTop) 
    {
        this.isTop = isTop;
    }

    public Integer getIsTop() 
    {
        return isTop;
    }
    public void setPriceSort(Long priceSort) 
    {
        this.priceSort = priceSort;
    }

    public Long getPriceSort() 
    {
        return priceSort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("coinName", getCoinName())
            .append("price", getPrice())
            .append("changeRate", getChangeRate())
            .append("status", getStatus())
            .append("fromUrl", getFromUrl())
            .append("icon", getIcon())
            .append("updateTime", getUpdateTime())
            .append("rightCoinName", getRightCoinName())
            .append("open", getOpen())
            .append("high", getHigh())
            .append("amount", getAmount())
            .append("isTop", getIsTop())
            .append("priceSort", getPriceSort())
            .toString();
    }
}
